package com.caishi.lkx.user.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zzw.common.entity.impl.BaseEntity;
import com.zzw.common.service.model.NameModel;
import com.zzw.common.service.model.base.SortModel;
import com.caishi.lkx.user.ienum.type.HotWordType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;


@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "sys_hot_word")
public class HotWordModel extends BaseEntity<HotWordModel> implements NameModel<HotWordModel,String> , SortModel<HotWordModel> {

    @Schema(title = "热词类型")
    private HotWordType type;
    @Schema(title ="热词")
    private String name;
    @Schema(title ="排序")
    private Integer sort;
    @Schema(title ="备注")
    private String remark;
    @TableField(exist = false)
    private String createdByName;
    @TableField(exist = false)
    @Schema(title = "附加信息")
    private Object data;
    @TableField
    private Boolean enable;
    @Schema(title = "热词来源0 用户搜索 1后台管理")
    @TableField
    private Integer source;



}
